package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 操作记录对象 t_operation
 * 
 * @author ruoyi
 * @date 2022-03-17
 */
public class TOperation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 操作记录ID */
    private Long oid;

    /** 操作名称 */
    @Excel(name = "操作名称")
    private String oname;

    /** 操作用户 */
    @Excel(name = "操作用户")
    private Long ofUser;

    /** 姓名,比如张三 */
    @Excel(name = "姓名,比如张三")
    private String uname;

    /** 来源：API和界面 */
    @Excel(name = "来源：API和界面")
    private String source;

    public void setOid(Long oid) 
    {
        this.oid = oid;
    }

    public Long getOid() 
    {
        return oid;
    }
    public void setOname(String oname) 
    {
        this.oname = oname;
    }

    public String getOname() 
    {
        return oname;
    }
    public void setOfUser(Long ofUser) 
    {
        this.ofUser = ofUser;
    }

    public Long getOfUser() 
    {
        return ofUser;
    }
    public void setUname(String uname) 
    {
        this.uname = uname;
    }

    public String getUname() 
    {
        return uname;
    }
    public void setSource(String source) 
    {
        this.source = source;
    }

    public String getSource() 
    {
        return source;
    }
    private String createtime;

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("oid", getOid())
            .append("oname", getOname())
            .append("ofUser", getOfUser())
            .append("uname", getUname())
            .append("source", getSource())
            .toString();
    }
}
